<?php
/**
 * Date: 2017/12/30
 * Time: 13:52
 */

namespace app\admin\controller;

use think\Controller;
use think\facade\Request;
use think\Db;

class Base extends Controller
{
    /**
     * 初始化
     */
    public function initialize()
    {
        parent::initialize();
        $count = DB::name('notify_status')->where('status', 1)->where('uid', session('uid'))->count();
        $this->assign('notify_num', $count);
    }

}